<template>
	<el-dialog title="发布文件" :visible.sync="visible" width="640px">
		<span>这是一段信息</span>
		<template slot="footer">
			<el-button size="medium" @click="visible = false">取消</el-button>
			<el-button size="medium" type="primary" @click="visible = false">确定</el-button>
		</template>
	</el-dialog>
</template>

<script>
export default {
	props: {
		value: {
			type: Boolean,
			default: false
		}
	},
	data() {
		return {
			visible: this.value
		};
	}
};
</script>

<style scoped></style>
